<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserDatailsTable extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('user_datails', function (Blueprint $table) {
			$table->increments('id');
			$table->integer('user_id')->comment('用户ID');
			$table->tinyInteger('sex')->comment('性别');
			$table->string('address')->comment('居住地');
			$table->string('work')->comment('行业');
			$table->string('school')->comment('学历');
			$table->text('autograph')->comment('个人签名');
			$table->text('intro')->comment('个人介绍');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::drop('user_datails');
	}
}
